package cn.myframe.service.sys.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import cn.myframe.dao.sys.SysInfoUserDao;
import cn.myframe.entity.sys.SysInfoUserEntity;
import cn.myframe.service.sys.SysInfoUserService;



@Service("sysInfoUserService")
public class SysInfoUserServiceImpl implements SysInfoUserService {
	@Autowired
	private SysInfoUserDao sysInfoUserDao;
	
	@Override
	public SysInfoUserEntity queryObject(Long id){
		return sysInfoUserDao.queryObject(id);
	}
	
	@Override
	public List<SysInfoUserEntity> queryList(Map<String, Object> map){
		return sysInfoUserDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return sysInfoUserDao.queryTotal(map);
	}
	
	@Override
	public void save(SysInfoUserEntity sysInfoUser){
		sysInfoUserDao.save(sysInfoUser);
	}
	
	@Override
	public void update(SysInfoUserEntity sysInfoUser){
		sysInfoUserDao.update(sysInfoUser);
	}
	
	@Override
	public void delete(Long id){
		sysInfoUserDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		sysInfoUserDao.deleteBatch(ids);
	}
	
	@Override
	public int checkExist(String id, String name) {
		return sysInfoUserDao.checkExist(id, name);
	}
	
	@Override
	public int updateStatus(Long[] ids, Integer status) {
		return sysInfoUserDao.updateStatus(ids, status);
	}
	
	@Override
	public int queryByInfoId(Long infoId,Long userId){
		return sysInfoUserDao.queryByInfoId(infoId,userId);
	}
	
	@Override
	public void deleteByInfoId(Long[] infoId){
		sysInfoUserDao.deleteByInfoId(infoId);
	}
	
}
